package com.itheima.reggie.dto;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishFlavor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * dto类：继承dish类，用来拓展dish类，主要作用是为了在展示层（前端页面）和服务层（controller层）之间进行数据传输
 * @author Mylinja 2021-12-17 星期五 20:16
 */
@Getter
@Setter
@ToString
public class DishDto extends Dish {

    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;
}
